package org.example.springbootmvc_2309.service;

import org.example.springbootmvc_2309.dao.UserDao;
import org.example.springbootmvc_2309.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserDao userDao;
    @Override
    public User getUserById(int id) {
        User userById = userDao.getUserById(id);
        return userById;
    }
}
